package com.example.antdback.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 用户表(User)实体类
 *
 * @author makejava
 * @since 2021-08-18 21:53:47
 */
@Data
public class User extends Model<User> {
    private static final long serialVersionUID = 582376876927370165L;

    private Long id;

    @NotBlank(message = "姓名不能为空")
    private String name;

    private String status;

    private String address;

    @NotBlank(message = "密码不能为空")
    private String password;

    private String type;

    private String authCode;

    private Integer age;

    private LocalDateTime createTime;

    @TableField(exist = false)
    private Long key;



}
